package com.ruoyi.erp.domain.bo;

import com.ruoyi.common.annotation.query.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 地区业务对象 sys_district
 *
 * @author chenyun
 * @date 2022-03-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("地区业务对象")
public class SysDistrictBo extends TreeEntity {

    /**
     * 编号
     */
    @EQ
    @ApiModelProperty(value = "编号", required = true)
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 编码
     */
    @EQ
    @ApiModelProperty(value = "编码", required = true)
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String districtCode;

    /**
     * 名称
     */
    @LikeRight
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String districtName;

    /**
     * 全称
     */
    @LikeRight
    @ApiModelProperty(value = "全称", required = true)
    @NotBlank(message = "全称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fullName;

    /**
     * 显示顺序
     */
    @EQ
    @ApiModelProperty(value = "显示顺序", required = true)
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer orderNum;

    /**
     * 级次
     */
    @EQ
    @ApiModelProperty(value = "级次", required = true)
    @NotBlank(message = "级次不能为空", groups = { AddGroup.class, EditGroup.class })
    private String districtLevel;

    /**
     * 地区类型
     */
    @EQ
    @ApiModelProperty(value = "地区类型", required = true)
    @NotBlank(message = "地区类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String districtType;

    /**
     * 备注信息
     */
    @EQ
    @ApiModelProperty(value = "备注信息")
    private String remark;


}
